package com.xzy.learn.spring.bean.initialization.config;

import com.xzy.learn.spring.bean.initialization.bean.StudentC;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Lazy;

/**
 * @author xzy.xiao
 * @date 2022/6/2  9:52
 */
public class LazyInitializationConfig {

    @Bean(initMethod = "myInitMethod")
    @Lazy
    public StudentC studentC() {
        return new StudentC();
    }
}
